<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.box{
			width: 200px;
			height: 200px;
			background-color: red;


/*			position: relative;*/
/*			相对定位  以自己所在的位置 作为起点*/
			/*left: 200px;
			top: 200px;*/


			/*position: absolute;
			决定定位


			right: 0;
			bottom: 0;*/

			/*position: fixed;
			固定定位*/


/*
			position: sticky;
			粘性定位*/
		}
		.one{
			width: 400px;
			height: 400px;
			background-color: pink;
			margin: 50px auto;
			position: relative;

		}
	</style>
</head>
<body>


	<div class="one">
<div class="box"></div>
	</div>



</body>
</html>